import { useContext } from "react";
import { UserContext } from "./ComponentA";

export default function ComponentD() {
  const user = useContext(UserContext)
  return (
    <div className="box">
        <h1>Component D</h1>
        <p>Bye {user}</p>
    </div>
  );
}
